<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8" />
		<meta name="author" content="wangbo" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>参数的作用域</title>
	</head>
	<body>
		<div onclick="fuclick()" >
			<button id="btn" >点击按钮</button>
		</div>
		
		<script>
			function show(mythis) {
				console.log("当前dom元素",mythis)
			};
			function fuclick(){
				window.localStorage.setItem("name","张三")
				console.log("onclick=function()",event.target,event.currentTarget)
			}
			document.querySelector("#btn").onclick=function(event){
				console.log("onclick=function()",event.target,event.currentTarget)
			}
		</script>
	</body>
</html>
